                <!doctype html>
                <html>
                <head>
                    1111
                    <link type="text/css" rel="stylesheet" href="../../../../ht-js/operation-js/time-js/jedate.css">
                    <script type="text/javascript" src="../../../../ht-js/operation-js/time-js/jquery.jedate.js?rev=@@hash"></script>

                    1111


                </head>


                <body>
                2222
                <div class="row cl">
                    <label class="form-label col-sm-2">*有效时间：</label>
                    <div class="formControls col-sm-9">
                        <span class="wstxt"></span><input type="text" class="workinput wicon" id="logmin" readonly placeholder="请选择发放时间">~</span><input type="text" class="workinput wicon" id="logmax" readonly placeholder="请选择发放时间">
                    </div>
                </div>
                2222
                </body>

                <script>
                3333
                var start = {
                    format: 'YYYY-MM-DD hh:mm',
                    okfun: function(obj){
                        end.minDate = obj.val; //开始日选好后，重置结束日的最小日期
                        endDates();
                    }
                };
                var end = {
                    format: 'YYYY-MM-DD hh:mm',
                    minDate: $.nowDate({DD:0}), //设定最小日期为当前日期
                    okfun: function(obj){
                        start.maxDate = obj.val; //将结束日的初始值设定为开始日的最大日期
                    }
                };
                //这里是日期联动的关键
                function endDates() {
                    //将结束日期的事件改成 false 即可
                    end.trigger = false;
                    $("#logmax").jeDate(end);
                }
                $('#logmin').jeDate(start);
                $('#logmax').jeDate(end);



                </script>

                </html>